package com.ktjiaoyu.service;
import com.ktjiaoyu.entity.StorageRecord;
import com.ktjiaoyu.utils.Page;
import java.util.List;
/**
 * @return 13141
 * 2025/6/25
 * 14:20
 */
public interface StorageService {
    /**
     * 批量保存入库记录
     * @param storageRecordList
     * @return
     */
    public int saveStorage(List<StorageRecord> storageRecordList);

    /**
     * 修改入库记录
     * @param storageRecord
     * @return
     */
    public int updateStorage(StorageRecord storageRecord);

    /**
     * 删除入库记录
     * @param id
     * @return
     */
    public int deleteStorage(Long id);
    /**
     * 多条件查询用户分页数据
     */
    public Page<StorageRecord> findPage(StorageRecord entity, Integer pageNo, Integer pageSize) throws Exception;
    /**
     * 保存或修改用户信息
     */
    public boolean saveOrUpdate(StorageRecord entity) throws Exception;
    /**
     * 根据 account 账号查找用户详细信息
     */
    public StorageRecord findBySrCode(String srCode) throws Exception;
    /**
     * 根据 id 查找入库记录详细信息
     */
    public StorageRecord findById(Long id) throws Exception;
}
